$OpenBSD: patch-qtbase_src_tools_qdoc_tokenizer_cpp,v 1.2 2015/04/19 13:18:28 zhuk Exp $
Get rid of strcpy().
--- qtbase/src/tools/qdoc/tokenizer.cpp.ports.orig	Tue Feb 17 07:56:38 2015
+++ qtbase/src/tools/qdoc/tokenizer.cpp	Wed Apr  8 00:38:30 2015
@@ -482,7 +482,7 @@ int Tokenizer::getToken()
         }
     }
 
-    strcpy(yyLex, "end-of-input");
+    strlcpy(yyLex, "end-of-input", yyLexBufSize);
     yyLexLen = strlen(yyLex);
     return Tok_Eoi;
 }
@@ -572,8 +572,8 @@ void Tokenizer::start(const Location& loc)
     yyTokLoc = loc;
     yyCurLoc = loc;
     yyCurLoc.start();
-    strcpy(yyPrevLex, "beginning-of-input");
-    strcpy(yyLex, "beginning-of-input");
+    strlcpy(yyPrevLex, "beginning-of-input", yyLexBufSize);
+    strlcpy(yyLex, "beginning-of-input", yyLexBufSize);
     yyLexLen = strlen(yyLex);
     yyBraceDepth = 0;
     yyParenDepth = 0;
@@ -665,7 +665,7 @@ int Tokenizer::getTokenAfterPreprocessor()
           yyPrevLex. This way, we skip over the preprocessor
           directive.
         */
-        qstrcpy(yyLex, yyPrevLex);
+        strlcpy(yyLex, yyPrevLex, yyLexBufSize);
 
         /*
           If getToken() meets another #, it will call
